//
//  XDRegisterBtnCell.m
//  XDEducation
//
//  Created by apple on 2017/4/6.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "XDRegisterBtnCell.h"

@interface XDRegisterBtnCell ()
@property (weak, nonatomic) IBOutlet UIButton *button;

@end

@implementation XDRegisterBtnCell
- (IBAction)registerBtn:(id)sender {
    
    if (self.registerBlock) {
        self.registerBlock();
    }
}


-(void)setTitle:(NSString *)title{

    _title = title;
    
    [self.button setTitle:title forState:UIControlStateNormal];
}
@end
